package com.bank.manage.service;

import com.bank.manage.enumerate.EventType;
import com.bank.manage.model.dto.RecordsDto;
import com.bank.manage.model.param.BankQueryParam;
import com.bank.manage.model.vo.RecordsVo;

/**
 * RecordsService
 *
 * @author grl
 * @date 2024/4/1
 */
public interface RecordsService {
    /**
     * 保存记录
     * @param dto
     * @return
     */
    Boolean addRecord(RecordsDto dto);

    /**
     * 查询记录
     * @param param
     * @return
     */
    RecordsVo recordQuery(BankQueryParam param);

    /**
     * 查询记录是否存在
     * @param param
     * @param eventType
     * @return
     */
    Boolean checkRecordFlag(BankQueryParam param, EventType eventType);

}
